package com.beans;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;
public class UserInfo {
	private Integer id;
	@NotBlank(message="账号不能为空")
	private String userName;
	@Length(min=5,max=10, message="密码长度必须在5-10之间")
	private String password;
	private String note;
	private int gender;
	private Date birthday;
	
	
	public UserInfo() {}
	
	public UserInfo(int id, String userName, String password, String note,int gender, Date birthday) {
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.note = note;
		this.gender=gender;
		this.birthday=birthday;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
}
